export interface ListQueryParams {
	pageNum: number;
	pageSize: number;
}

export interface IPermission {
	id: number;
	name: string;
	description: string | null;
	parentId: number | null;
	creator: string;
	creatorName: string;
	resource: string;
	createTime: Date;
	updateTime: Date;
	children?: IPermission[];
}

export interface ISubmitPermission {
	id?: number;
	name: string;
	description: string | null;
	parentId?: number | null;
	resource: string;
}

export interface IPermissionList {
	total: number;
	list: IPermission[];
}

export interface IUserPermission {
	id: number;
	name: string;
	parentId: string;
	resource: string;
}
